Release 10.1A: OpenEdge Development:
ADM Reference
SmartProducer and SmartConsumer
The SmartMessageProducer sends messages using some message-transport system. At present, the only transport system supported is SonicMQ.
On demand, SmartMessageProducer creates a message body of the appropriate kind, passes it back to the requesting object—such as a SmartB2BObject or SmartSender—to be filled in, and finally inserts the message into the outbound message-transport queue. If it receives a reply to a message, it accepts it and passes it upstream for processing.
The SmartConsumer handles inbound traffic from some message-transport system. It accepts incoming messages and passes them on for processing by some other object such as a SmartB2BObject or SmartReceiver. It also sends reply messages when required.
The class names of the objects are Producer and Consumer, respectively. They are OpenEdge classes derived from the Messaging class.
The file
src/adm2/producer.pis the super procedure for the class SmartProducer. The filesrc/adm2/consumer.pis the super procedure for the class SmartConsumer. Table 1–21 lists the class and custom files related toproducer.p.
Table 1–22 lists the files for the Consumer class.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |